public class PaymentAuthorizationService {
	public ICCAdapter validateCard (String card) {
	    // New cards are created here for the purpose of a demo.
		if (card.equals ("CreditCardA")) {
			return new VisaAdapter (500);
		} else if (card.equals ("CreditCardB")) {
			return new MCAdapter (300);
		} else {
			return null;
		}
	}
	public boolean isConfirmed (ICCAdapter card, String PIN){
		if (PIN.equals (card.getPassword ())){
			return true;
		} else {
			return false;
		}
	}
}
